<?php

define('SCR','play');
$rid = intval($_GET['objectid']);
require_once('global.php');

require_once(D_P . 'data/cache/server.php');
$res = $db->get_one("SELECT filepath,serverid FROM cms_resource WHERE rid='$rid'");
$serverulr = $server[$res['serverid']]['serverurl'];
$url = $serverulr . $res['filepath'];
$flvurl = str_replace('.' . end(explode('.', $url)), '.flv', $url);
echo "f=$flvurl";
exit;
?>